package com.ly.heart.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


@Data
@ApiModel(value="采购订单变更单返回Vo")
@JsonInclude(JsonInclude.Include.ALWAYS)
@Accessors(chain = true)
public class OrderChangeVo {

    @ApiModelProperty ("采购订单id")
    private String id;

    @ApiModelProperty ("订单编号")
    private String orderNumber;

    @ApiModelProperty ("采购日期")
    @JsonFormat( pattern = "yyyy-MM-dd" )
    private Date applyTime;

    @ApiModelProperty ("供应商id")
    private String supplierId;

    @ApiModelProperty ("供应商编码")
    private String supplierCode;

    @ApiModelProperty ("供应商名称")
    private String supplierName;

    @ApiModelProperty ("行号")
    private String lineNumber;

    @ApiModelProperty ("源单Id")
    private String sourceId;

//    @ApiModelProperty ("源单物料明细Id")
//    private String sourceMaterialDetailId;

    @ApiModelProperty ("物料明细Id")
    private String materialDetailId;

    @ApiModelProperty ("物料Id")
    private String materialId;

    @ApiModelProperty ("物料编码")
    private String materialCode;

    @ApiModelProperty ("物料名称")
    private String materialName;

    @ApiModelProperty ( "规格型号" )
    private String model;

    @ApiModelProperty ("数量")
    private String number;

    @ApiModelProperty ("变更类型（0新增 1修改 2删除）")
    private String changeType;

    @ApiModelProperty ("变更类型名称）")
    private String changeTypeName;

    @ApiModelProperty ("原采购数量")
    private String originalNumber;

    @ApiModelProperty ("原含税单价")
    private String originalContainsTaxPrice;

    @ApiModelProperty ("价税合计")
    private String totalTaxPrice = "0.0";

    @ApiModelProperty ("采购单位")
    private String purchaseUnit;

    @ApiModelProperty ("交货日期")
    @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date deliveryDate;

    @ApiModelProperty ("净价")
    private String netAmount;

    @ApiModelProperty ("金额")
    private String amountMoney;

    @ApiModelProperty ("批号")
    private String batchNum;


}
